﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="/Scripts/moment.min.js"></script>
    <script>
        alert(navigator.userLanguage.toLowerCase);
        d = new Date();
        var date = moment().format('L');
        alert(d);                        // -> Sat Feb 28 2004 23:45:26 GMT-0300 (BRT)
        alert(d.toLocaleString());       // -> Sat Feb 28 23:45:26 2004
        alert(d.toLocaleDateString());   // -> 02/28/2004
        alert(d.toLocaleTimeString());   // -> 23:45:26
    </script>
</head>
<body>
    estou aqui.
</body>
</html>
